package cloud.feign.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cloud.feign.model.User;
import cloud.feign.service.hystrix.UserServiceHystrix;

@FeignClient(value = "cloud-simple-service",fallback = UserServiceHystrix.class)
public interface UserService {
	
	@RequestMapping(method = RequestMethod.GET, value = "/user")
	public List<User> readUserInfo();
}
